<%@page import="com.study.lession.util.StringUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../session.jsp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
	<head>
 		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

        <!--font-family-->
		<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&amp;subset=devanagari,latin-ext" rel="stylesheet">
        
        <!-- title of site -->
        <title>修改</title>

        <!-- For favicon png -->
		<link rel="shortcut icon" type="image/icon" href="resources/logo/favicon.png"/>
       
        <!--font-awesome.min.css-->
        <link rel="stylesheet" href="resources/css/font-awesome.min.css">
		
		<!--animate.css-->
        <link rel="stylesheet" href="resources/css/animate.css">
		
        <!--bootstrap.min.css-->
        <link rel="stylesheet" href="resources/css/bootstrap.min.css">
		
		<!-- bootsnav -->
		<link rel="stylesheet" href="resources/css/bootsnav.css" >	
        
        <!--style.css-->
        <link rel="stylesheet" href="resources/css/style.css">
        
        <!--responsive.css-->
        <link rel="stylesheet" href="resources/css/responsive.css">
        
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		
        <!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
			<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->

    </head>
	
	<body>
		<!-- signin end -->
		<section class="signin signup">
			<div class="container">

				<div class="sign-content">
					<h4>${msg }</h4>
					
					<div class="row">
						<div class="col-sm-12">
							<div class="signin-form">
								<form action="edit.action" method="post">
									<input type="hidden" name="stuid" value="${lessionUserInfo.stuid }">
									<div class="form-col">
										<div class="form-group">
											<label for="signin_form">账号</label>
										    <input type="text" class="form-control" id="stuname" name="stuname" placeholder="请输入您的姓名" value="${lessionUserInfo.stuname }">
										</div><!--/.form-group -->
									</div><!--/.form-col -->
									<div class="form-col1">
										<div class="form-group">
											<label for="signin_form">密码</label>
										    <input type="password" class="form-control" id="stupassword" name="stupassword" placeholder="请输入您的密码" value="${lessionUserInfo.stupassword }">
										</div><!--/.form-group -->
									</div><!--/.form-col -->							
									<div class="form-group">
									    <label for="signin_form">学号</label>
									    <input type="text" class="form-control" id="stunumber" name="stunumber" placeholder="请输入您的学号" value="${lessionUserInfo.stunumber }">
									</div><!--/.form-group -->
									<div class="form-group">	
										<label for="signin_form">头像</label>			
										<div id="bcd" style="max-width:100px;">
											<%
												LessionUserInfo lessionUserInfo = (LessionUserInfo)request.getAttribute("lessionUserInfo");
								        		String stuheadpic = lessionUserInfo.getStuheadpic();
								        		if(StringUtil.isNotEmpty(stuheadpic)) {
								        	%>
								        		<img src="showPic.action?fileName=<%=lessionUserInfo.getStuheadpic() %>" style="max-height:50px;" />
								        	<%
								        		}
								        	%>
										</div>
										<div class="input-group">
											<input type="file" class="form-control" id="abc" name="abc">
											<span class="input-group-btn"> 
												<button type="button" class="btn btn-lg btn-warning" id="uploadButton">上传</button>
						                    </span>
								        </div>
									    <input type="hidden" id="stuheadpic" name="stuheadpic" value="${lessionUserInfo.stuheadpic }">
									</div><!--/.form-group -->
									<div class="form-col">
										<div class="form-group">
											<label for="signin_form">手机</label>
										    <input type="text" class="form-control" id="stuphone" name="stuphone" placeholder="请输入您的手机" value="${lessionUserInfo.stuphone}">
										</div><!--/.form-group -->
									</div><!--/.form-col -->
									<div class="form-col1">
										<div class="form-group">
											<label for="signin_form">学院</label>
										    <input type="text" class="form-control" id="studepartment" name="studepartment" placeholder="请输入您的学院" value="${lessionUserInfo.studepartment }">
										</div><!--/.form-group -->
									</div><!--/.form-col -->	
									<div class="form-group">
									    <label for="signin_form">邮箱</label>
									     <input type="email" class="form-control" id="stuemail" name="stuemail" placeholder="请输入您的邮箱" value="${lessionUserInfo.stuemail }">
									</div><!--/.form-group -->
									<div class="form-group">
									    <label for="signin_form">省份</label>
									     <input type="text" class="form-control" id="stuprovince" name="stuprovince" placeholder="请输入您的省份" value="${lessionUserInfo.stuprovince }">
									</div><!--/.form-group -->
									<div class="signin-footer">
										<button type="submit" class="btn signin_btn">
										保存
										</button>
										<a href="list.action" class="btn signin_btn">
										返回
										</a>
									</div><!--/.signin-footer -->
								</form><!--/form -->
							</div><!--/.signin-form -->
						</div><!--/.col -->
					</div><!--/.row -->

				</div><!--/.sign-content -->

			</div><!--/.container -->

		</section><!--/.signin -->
		
		<!-- signin end -->

		 <!-- Include all js compiled plugins (below), or include individual files as needed -->

		<script src="resources/js/jquery.js"></script>
        
        <!--modernizr.min.js-->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
		
		<!--bootstrap.min.js-->
        <script src="resources/js/bootstrap.min.js"></script>
		
		<!-- bootsnav js -->
		<script src="resources/js/bootsnav.js"></script>
		<script src="resources/js/ajaxfileupload.js"></script>
		
		
		<!-- jquery.sticky.js -->
		<script src="resources/js/jquery.sticky.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
		        
        <!--Custom JS-->
        <script src="resources/js/custom.js"></script>
        <script src="resources/js/edit.js"></script>

    </body>
</html>